<?php echo $this->element('user'); ?>
<fieldset>
<legend>Search Questions</legend>
<table>
	<tr><th>Name</th><th width="100px">Action</th></tr>
<?php 
	foreach ($questions as $question){ 
		print '<tr><td><a href="/questions/edit/'.$question['Question']['id'].'">'.$question['Question']['name'].'</a></td><td><a href="/questions/edit/'.$question['Question']['id'].'"><img src="/img/edit.gif" border="0"></a>&nbsp;<a href="/questions/order/'.$question['Question']['id'].'"><img src="/img/change_order.gif" border="0"></a>&nbsp;<a href="javascript:checkDelete(\'/questions/delete/'.$question['Question']['id'].'\');"><img src="/img/minus.gif" border="0"></a></td></tr>';
	}
?>
</table>
</fieldset>